<div class="images index">
	<h2><?php __('Images');?></h2>
	<?php
	$i = 0;
	foreach ($images as $image):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
    <div class="thumb_img">
        <?php echo $this->Html->link(
        $this->Html->image('album/album_'.$image['Categorie']['id'].'/thumbnails/imagen_' . $image['Image']['location'], array('alt' => $image['Image']['name'])),
        '/img/album/album_'.$image['Categorie']['id'].'/medium/imagen_' . $image['Image']['location'],
        array('class' => 'grouped', 'rel' => 'group', 'title' => $image['Image']['description'],'escape' => false)
        ); ?><br />
        <?php echo $this->Html->link(__('View', true), array('action' => 'view', $image['Image']['id']), array('class' => 'thumb_img_action')); ?>
        <?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $image['Image']['id']), array('class' => 'thumb_img_action')); ?>
        <?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $image['Image']['id']), array('class' => 'thumb_img_action'), sprintf(__('Are you sure you want to delete # %s?', true), $image['Image']['id'])); ?>
	</div>
	<?php endforeach; ?>
	<br clear="left" />
    <p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('New Image', true), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(__('List Categories', true), array('controller' => 'categories', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Categorie', true), array('controller' => 'categories', 'action' => 'add')); ?> </li>
	</ul>
</div>